package com.imjohn.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class respUtil {
    /*成功返回*/
    public static Map respSuccess( List<HashMap> param) {
        Map res = new HashMap();
        res.put("data" ,param);
        res.put("respCode" ,"00000000");
        return res;
    }
    /*成功返回*/
    public static Map respSuccessHash(Map param) {
        Map res = new HashMap();
        res.put("data" ,param);
        res.put("respCode" ,"00000000");
        return res;
    }
    /*失败返回*/
    public static Map respFailer(String param) {
        Map res = new HashMap();
        res.put("respCode", "12345678");
        res.put("respMsg", param);
        return res;
    }
    /*退出返回*/
    public static Map logOut() {
        Map res = new HashMap();
        res.put("respCode" ,"00000000");
        return res;
    }
    /*超时返回*/
    public static Map expiredOut(String param) {
        Map res = new HashMap();
        res.put("respMsg", param);
        res.put("respCode" ,"invalid.user");
        return res;
    }
}
